package demo4;

public class Poker {
    private String decor;  //花色
    private int size;  //大小

    public Poker(String decor, int size) {
        this.decor = decor;
        this.size = size;
    }

    public String getDecor() {
        return decor;
    }

    public void setDecor(String decor) {
        this.decor = decor;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "{"  + decor + " "+ size + '}';
    }
}
